import Vue from "vue";
import Router from "vue-router";
import Layout from "@/layout";

Vue.use(Router);
export default new Router({
    // mode: 'history',
    routes: [
        /* 登录页 */
        {
            path: "/login",
            meta: {
                title: "登录页",
            },
            component: (resolve) => require(["@/views/login.vue"], resolve),
        },

        /* 新增/编辑电子围栏 */
        {
            path: "/fence",
            meta: {
                title: "电子围栏",
            },
            component: (resolve) => require(["@/views/emp/fence.vue"], resolve),
        },

        /* 考勤大屏 */
        {
            path: "/attendance",
            component: (resolve) =>
                require(["@/views/attendance-board/index.vue"], resolve),
        },

        /* 首页/消息/工作台 */
        {
            path: "/",
            component: Layout,
            redirect: "/home",
            children: [
                {
                    path: "home",
                    meta: {
                        title: "首页",
                        hiddenLeftMenu: true, // 隐藏页面左侧菜单
                        hiddenTopMenu: true, // 隐藏页面顶部菜单
                    },
                    component: (resolve) => require(["@/views/home/index.vue"], resolve),
                },
                {
                    path: "message",
                    meta: {
                        title: "消息",
                        hiddenLeftMenu: true, // 隐藏页面左侧菜单
                        hiddenTopMenu: true, // 隐藏页面顶部菜单
                    },
                    component: (resolve) => require(["@/views/msg/all.vue"], resolve),
                },
                {
                    path: "workbench",
                    meta: {
                        title: "工作台",
                        hiddenLeftMenu: true, // 隐藏页面左侧菜单
                        hiddenTopMenu: true, // 隐藏页面顶部菜单
                    },
                    component: (resolve) => require(["@/views/workbench/index.vue"], resolve),
                },
            ],
        },

        /* 项目管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "prj/list",
                    component: (resolve) => require(["@/views/project/index.vue"], resolve),
                    meta: {
                        title: "项目信息",
                    },
                },
                {
                    path: "prj/corp",
                    component: (resolve) => require(["@/views/project/corp.vue"], resolve),
                    meta: {
                        title: "合作单位",
                    },
                },
                {
                    path: "prj/log",
                    component: (resolve) => require(["@/views/project/log.vue"], resolve),
                    meta: {
                        title: "施工日志",
                    },
                },
                {
                    path: "prj/sence",
                    component: (resolve) => require(["@/views/project/sence.vue"], resolve),
                    meta: {
                        title: "现场模拟",
                    },
                },
                {
                    path: "prj/weather",
                    component: (resolve) => require(["@/views/project/weather.vue"], resolve),
                    meta: {
                        title: "历史天气",
                    },
                },
            ],
        },

        /* 人员管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "emp/index",
                    meta: {
                        title: "首页",
                    },
                    component: (resolve) => require(["@/views/emp/index.vue"], resolve),
                },
                {
                    path: "emp/ana",
                    meta: {
                        title: "数据分析",
                    },
                    component: (resolve) => require(["@/views/emp/ana.vue"], resolve),
                },
                {
                    path: "emp/list",
                    meta: {
                        title: "人员信息",
                    },
                    component: (resolve) => require(["@/views/emp/list.vue"], resolve),
                },
                {
                    path: "emp/group",
                    meta: {
                        title: "班组管理",
                    },
                    component: (resolve) => require(["@/views/emp/group.vue"], resolve),
                },
                {
                    path: "emp/approve",
                    meta: {
                        title: "人员审批",
                    },
                    component: (resolve) => require(["@/views/emp/approve.vue"], resolve),
                },
                {
                    path: "emp/attend",
                    meta: {
                        title: "考勤信息",
                    },
                    component: (resolve) => require(["@/views/emp/attend.vue"], resolve),
                },
                {
                    path: "emp/data",
                    meta: {
                        title: "人员统计",
                    },
                    component: (resolve) => require(["@/views/emp/data.vue"], resolve),
                },
                {
                    path: "emp/card",
                    meta: {
                        title: "打卡记录",
                    },
                    component: (resolve) => require(["@/views/emp/card.vue"], resolve),
                },
                {
                    path: "emp/gps",
                    meta: {
                        title: "人员轨迹",
                    },
                    component: (resolve) => require(["@/views/emp/gps.vue"], resolve),
                },
                {
                    path: "emp/broadcast",
                    meta: {
                        title: "智能安全帽",
                    },
                    component: (resolve) => require(["@/views/emp/broadcast.vue"], resolve),
                },
                {
                    path: "emp/upload/fence",
                    meta: {
                        title: "电子围栏",
                    },
                    component: (resolve) => require(["@/views/fence.vue"], resolve),
                },
                {
                    path: "emp/fence",
                    meta: {
                        title: "电子围栏",
                    },
                    component: (resolve) => require(["@/views/emp/fence.vue"], resolve),
                },
                {
                    path: "emp/gate",
                    meta: {
                        title: "刷脸记录",
                    },
                    component: (resolve) => require(["@/views/emp/gate.vue"], resolve),
                },
                {
                    path: "emp/faceGate",
                    meta: {
                        title: "闸机管理",
                    },
                    component: (resolve) => require(["@/views/emp/faceGate.vue"], resolve),
                },
                {
                    path: "emp/audit",
                    meta: {
                        title: "访客审批",
                    },
                    component: (resolve) => require(["@/views/emp/audit.vue"], resolve),
                },
                {
                    path: "emp/visitor",
                    meta: {
                        title: "访客记录",
                    },
                    component: (resolve) => require(["@/views/emp/visitor.vue"], resolve),
                },
                {
                    path: "emp/payroll",
                    meta: {
                        title: "工资管理",
                    },
                    component: (resolve) => require(["@/views/emp/payroll.vue"], resolve),
                },
                {
                    path: "emp/payroll_details",
                    meta: {
                        title: "工资详情",
                    },
                    component: (resolve) => require(["@/views/emp/payroll_details.vue"], resolve),
                },
                {
                    path: "emp/train",
                    meta: {
                        title: "人员培训",
                    },
                    component: (resolve) => require(["@/views/emp/train.vue"], resolve),
                },
                {
                    path: "emp/trainee",
                    meta: {
                        title: "培训详情",
                    },
                    component: (resolve) => require(["@/views/emp/trainee.vue"], resolve),
                },
                {
                    path: "emp/education",
                    meta: {
                        title: "教育箱",
                    },
                    component: (resolve) => require(["@/views/emp/education.vue"], resolve),
                },
                {
                    path: "emp/warn/record",
                    meta: {
                        title: "报警记录",
                    },
                    component: (resolve) => require(["@/views/emp/warn_record.vue"], resolve),
                },
                {
                    path: "emp/warn/setting",
                    meta: {
                        title: "报警设置",
                    },
                    component: (resolve) => require(["@/views/emp/warn_setting.vue"], resolve),
                },
                {
                    path: "emp/reward",
                    meta: {
                        title: "奖惩记录",
                    },
                    component: (resolve) => require(["@/views/emp/reward.vue"], resolve),
                },
                {
                    path: "emp/blacklist",
                    meta: {
                        title: "黑名单管理",
                    },
                    component: (resolve) => require(["@/views/emp/blacklist.vue"], resolve),
                },
                {
                    path: "emp/setting",
                    meta: {
                        title: "规则设置",
                    },
                    component: (resolve) => require(["@/views/emp/setting.vue"], resolve),
                },
                {
                    path: "emp/workType",
                    meta: {
                        title: "工种字典",
                    },
                    component: (resolve) => require(["@/views/emp/workType.vue"], resolve),
                },
            ],
        },

        /* 视频监控 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "fvs/record",
                    component: (resolve) => require(["@/views/fvs/record.vue"], resolve),
                    meta: {
                        title: "视频监控",
                    },
                },
                {
                    path: "fvs/device",
                    component: (resolve) => require(["@/views/fvs/device.vue"], resolve),
                    meta: {
                        title: "视频设备",
                    },
                },
                {
                    path: "fvs/log",
                    component: (resolve) => require(["@/views/fvs/log.vue"], resolve),
                    meta: {
                        title: "抓拍记录",
                    },
                },
                {
                    path: "fvs/ana",
                    component: (resolve) => require(["@/views/fvs/ana.vue"], resolve),
                    meta: {
                        title: "智能监控分析",
                    },
                },
                {
                    path: "fvs/warn/record",
                    component: (resolve) => require(["@/views/fvs/warn_record.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "fvs/warn/setting",
                    component: (resolve) => require(["@/views/fvs/warn_setting.vue"], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },
            ],
        },

        /* 环境监测 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "env/dust/data",
                    component: (resolve) => require(["@/views/env/dust_data.vue"], resolve),
                    meta: {
                        title: "扬尘数据",
                    },
                },
                {
                    path: "env/dust/history",
                    component: (resolve) => require(["@/views/env/dust_history.vue"], resolve),
                    meta: {
                        title: "历史数据",
                    },
                },
                {
                    path: "env/dust/record",
                    component: (resolve) => require(["@/views/env/dust_record.vue"], resolve),
                    meta: {
                        title: "报警记录(扬尘监测)",
                    },
                },
                {
                    path: "env/dust/setting",
                    component: (resolve) => require(["@/views/env/dust_setting.vue"], resolve),
                    meta: {
                        title: "报警设置(扬尘监测)",
                    },
                },
                {
                    path: "env/water/data",
                    component: (resolve) => require(["@/views/env/water_data.vue"], resolve),
                    meta: {
                        title: "水质数据",
                    },
                },
                {
                    path: "env/gas/data",
                    component: (resolve) => require(["@/views/env/gas_data.vue"], resolve),
                    meta: {
                        title: "气体监测",
                    },
                },
                {
                    path: "env/gas/record",
                    component: (resolve) => require(["@/views/env/gas_record.vue"], resolve),
                    meta: {
                        title: "报警记录(毒害气体数据)",
                    },
                },
                {
                    path: "env/gas/setting",
                    component: (resolve) => require(["@/views/env/gas_setting.vue"], resolve),
                    meta: {
                        title: "报警设置(毒害气体数据)",
                    },
                },
                {
                    path: "env/device",
                    component: (resolve) => require(["@/views/env/device.vue"], resolve),
                    meta: {
                        title: "环境设备",
                    },
                },
            ],
        },

        /* 设备管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "mach/index",
                    component: (resolve) => require(["@/views/mach/index.vue"], resolve),
                    meta: {
                        title: "数据分析",
                    },
                },
                {
                    path: "mach/ana",
                    component: (resolve) => require(["@/views/mach/ana.vue"], resolve),
                    meta: {
                        title: "数据分析",
                    },
                },
                {
                    path: "mach/list",
                    component: (resolve) => require(["@/views/mach/list.vue"], resolve),
                    meta: {
                        title: "设备信息",
                    },
                },
                {
                    path: "mach/data",
                    component: (resolve) => require(["@/views/mach/data.vue"], resolve),
                    meta: {
                        title: "设备数据",
                    },
                },
                {
                    path: "mach/report-center",
                    component: (resolve) => require(["@/views/mach/reportAll.vue"], resolve),
                    meta: {
                        title: "报表中心",
                    },
                },
                {
                    path: "mach/machMulti",
                    component: (resolve) => require(["@/views/mach/machMulti.vue"], resolve),
                    meta: {
                        title: "设备维度分析",
                    },
                },
                {
                    path: "mach/warn/record",
                    component: (resolve) => require(["@/views/mach/warn_record.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "mach/warn/setting",
                    component: (resolve) => require(["@/views/mach/warn_setting.vue"], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },
                {
                    path: "mach/maintain/record",
                    component: (resolve) => require(["@/views/mach/maintain_record.vue"], resolve),
                    meta: {
                        title: "维修保养记录",
                    },
                },
                {
                    path: "mach/maintain/report",
                    component: (resolve) => require(["@/views/mach/maintain_report.vue"], resolve),
                    meta: {
                        title: "保养报表",
                    },
                },
                {
                    path: "mach/dev",
                    component: (resolve) => require(["@/views/mach/dev.vue"], resolve),
                    meta: {
                        title: "设备硬件",
                    },
                },
                {
                    path: "mach/dict",
                    component: (resolve) => require(["@/views/mach/dict.vue"], resolve),
                    meta: {
                        title: "系统设置",
                    },
                },
            ],
        },

        /* 特种设备 */
        {
            path: "/",
            component: Layout,
            children: [
                /**
                 *  塔基
                 * */
                {
                    path: "fse/crane/monitor",
                    component: (resolve) => require(["@/views/fse/crane_monitor.vue"], resolve),
                    meta: {
                        title: "塔机监控",
                    },
                },
                {
                    path: "fse/crane/record",
                    component: (resolve) => require(["@/views/fse/crane_record.vue"], resolve),
                    meta: {
                        title: "吊装记录",
                    },
                },
                {
                    path: "fse/crane/msg",
                    component: (resolve) => require(["@/views/fse/crane.vue"], resolve),
                    meta: {
                        title: "塔机管理",
                    },
                },
                {
                    path: "fse/crane/warn/record",
                    component: (resolve) => require(["@/views/fse/craneWarnRecord.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "fse/crane/warn/setting",
                    component: (resolve) => require(["@/views/fse/craneWarnSetting.vue"], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },
                {
                    path: "fse/crane/rigging",
                    component: (resolve) => require(["@/views/fse/rigging.vue"], resolve),
                    meta: {
                        title: "吊索具信息",
                    },
                },

                /**
                 * 升降机
                 * */
                {
                    path: "fse/lift/monitor",
                    component: (resolve) => require(["@/views/fse/lift_monitor.vue"], resolve),
                    meta: {
                        title: "升降机监控",
                    },
                },
                {
                    path: "fse/lift/record",
                    component: (resolve) => require(["@/views/fse/lift_record.vue"], resolve),
                    meta: {
                        title: "升降机记录",
                    },
                },
                {
                    path: "fse/lift/msg",
                    component: (resolve) => require(["@/views/fse/lift.vue"], resolve),
                    meta: {
                        title: "升降机管理",
                    },
                },
                {
                    path: "fse/lift/warn/record",
                    component: (resolve) => require(["@/views/fse/liftWarnRecord.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "fse/lift/warn/setting",
                    component: (resolve) => require(["@/views/fse/liftWarnSetting.vue"], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },

                /**
                 * 履带吊
                 * */
                {
                    path: "fse/crawler/monitor",
                    component: (resolve) => require([
                            "@/views/fse/crawler/crawler_monitor.vue",
                        ], resolve),
                    meta: {
                        title: "设备监控",
                    },
                },
                {
                    path: "fse/crawler/msg",
                    component: (resolve) => require([
                            "@/views/fse/crawler/crawler_msg.vue",
                        ], resolve),
                    meta: {
                        title: "设备信息",
                    },
                },
                {
                    path: "fse/crawler/warn/record",
                    component: (resolve) => require([
                            "@/views/fse/crawler/crawler_Warn.vue",
                        ], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "fse/crawler/warn/setting",
                    component: (resolve) => require([
                            "@/views/fse/crawler/crawler_WarnSetting.vue",
                        ], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },

                /**
                 * 龙门吊
                 * */
                {
                    path: "fse/gantry/monitor",
                    component: (resolve) => require(["@/views/fse/gantry_monitor.vue"], resolve),
                    meta: {
                        title: "龙门吊监控",
                    },
                },
                {
                    path: "fse/gantry/msg",
                    component: (resolve) => require(["@/views/fse/gantry.vue"], resolve),
                    meta: {
                        title: "龙门吊管理",
                    },
                },
                {
                    path: "fse/gantry/warn/record",
                    component: (resolve) => require(["@/views/fse/gantryWarnRecord.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "fse/gantry/warn/setting",
                    component: (resolve) => require(["@/views/fse/gantryWarnSetting.vue"], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },

                /**
                 * 架桥机
                 * */
                {
                    path: "fse/bridge/monitor",
                    component: (resolve) => require(["@/views/fse/bridge_monitor.vue"], resolve),
                    meta: {
                        title: "架桥机监控",
                    },
                },
                {
                    path: "fse/bridge/msg",
                    component: (resolve) => require(["@/views/fse/bridge.vue"], resolve),
                    meta: {
                        title: "架桥机管理",
                    },
                },
                {
                    path: "fse/bridge/warn/record",
                    component: (resolve) => require(["@/views/fse/bridgeWarnRecord.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "fse/bridge/warn/setting",
                    component: (resolve) => require(["@/views/fse/bridgeWarnSetting.vue"], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },
            ],
        },

        /* 物资管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "fmam/receiveNote",
                    component: (resolve) => require(["@/views/fmam/receiveNote.vue"], resolve),
                    meta: {
                        title: "收料台账",
                    },
                },
                {
                    path: "fmam/receiveDetailes",
                    component: (resolve) => require(["@/views/fmam/receiveDetailes.vue"], resolve),
                    meta: {
                        title: "收料明细",
                    },
                },
                {
                    path: "fmam/sendNote",
                    component: (resolve) => require(["@/views/fmam/sendNote.vue"], resolve),
                    meta: {
                        title: "发料台账",
                    },
                },
                {
                    path: "fmam/sendDetailes",
                    component: (resolve) => require(["@/views/fmam/sendDetailes.vue"], resolve),
                    meta: {
                        title: "发料明细",
                    },
                },
                {
                    path: "fmam/receive",
                    component: (resolve) => require(["@/views/fmam/receive.vue"], resolve),
                    meta: {
                        title: "收料汇总分析",
                    },
                },
                {
                    path: "fmam/send",
                    component: (resolve) => require(["@/views/fmam/send.vue"], resolve),
                    meta: {
                        title: "发料汇总分析",
                    },
                },
                {
                    path: "fmam/supplierDetail",
                    component: (resolve) => require(["@/views/fmam/supplierDetail.vue"], resolve),
                    meta: {
                        title: "供应商供货明细",
                    },
                },
                {
                    path: "fmam/supplierDetailes",
                    component: (resolve) => require(["@/views/fmam/supplierDetailes.vue"], resolve),
                    meta: {
                        title: "供应商明细",
                    },
                },
                {
                    path: "fmam/supplierDiff",
                    component: (resolve) => require(["@/views/fmam/supplierDiff.vue"], resolve),
                    meta: {
                        title: "供应商供货偏差分析",
                    },
                },
                {
                    path: "fmam/corp",
                    component: (resolve) => require(["@/views/fmam/corp.vue"], resolve),
                    meta: {
                        title: "物资合作单位",
                    },
                },
                {
                    path: "fmam/mat",
                    component: (resolve) => require(["@/views/fmam/mat.vue"], resolve),
                    meta: {
                        title: "材料字典",
                    },
                },
                {
                    path: "fmam/warehouse",
                    component: (resolve) => require(["@/views/fmam/warehouse.vue"], resolve),
                    meta: {
                        title: "仓库管理",
                    },
                },
                {
                    path: "fmam/weighRoom",
                    component: (resolve) => require(["@/views/fmam/weighRoom.vue"], resolve),
                    meta: {
                        title: "磅房管理",
                    },
                },
                {
                    path: "fmam/plan",
                    component: (resolve) => require(["@/views/fmam/plan.vue"], resolve),
                    meta: {
                        title: "材料计划",
                    },
                },
                {
                    path: "fmam/plan/add",
                    component: (resolve) => require(["@/views/fmam/planAdd.vue"], resolve),
                    meta: {
                        title: "材料计划添加",
                    },
                },
                {
                    path: "fmam/plan/details",
                    component: (resolve) => require(["@/views/fmam/planDetails.vue"], resolve),
                    meta: {
                        title: "材料计划详情",
                    },
                },
            ],
        },

        /* 车辆管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "car/gate",
                    component: (resolve) => require(["@/views/car/gate.vue"], resolve),
                    meta: {
                        title: "车辆识别",
                    },
                },
                {
                    path: "car/machList",
                    component: (resolve) => require(["@/views/car/machList.vue"], resolve),
                    meta: {
                        title: "设备列表",
                    },
                },
                {
                    path: "car/washRecord",
                    component: (resolve) => require(["@/views/car/washRecord.vue"], resolve),
                    meta: {
                        title: "冲洗记录",
                    },
                },
            ],
        },

        /* 安全管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "safety/ana",
                    component: (resolve) => require(["@/views/safety/ana.vue"], resolve),
                    meta: {
                        title: "统计分析",
                    },
                },
                {
                    path: "safety/record",
                    component: (resolve) => require(["@/views/safety/record.vue"], resolve),
                    meta: {
                        title: "检查记录",
                    },
                },
                {
                    path: "safety/problemDetail",
                    component: (resolve) => require(["@/components/ProblemDetail.vue"], resolve),
                    meta: {
                        title: "安全问题处理",
                    },
                },
                {
                    path: "safety/check",
                    component: (resolve) => require(["@/views/safety/check.vue"], resolve),
                    meta: {
                        title: "检查部位",
                    },
                },
                {
                    path: "safety/problem",
                    component: (resolve) => require(["@/views/safety/problem.vue"], resolve),
                    meta: {
                        title: "安全问题库",
                    },
                },
                {
                    path: "safety/fine",
                    component: (resolve) => require(["@/views/safety/fine.vue"], resolve),
                    meta: {
                        title: "罚款单",
                    },
                },
                {
                    path: "safety/rectify",
                    component: (resolve) => require(["@/views/safety/rectify.vue"], resolve),
                    meta: {
                        title: "整改通知单",
                    },
                },
                {
                    path: "safety/rectifyData",
                    component: (resolve) => require(["@/views/safety/rectifyData.vue"], resolve),
                    meta: {
                        title: "整改通知单详情",
                    },
                },
            ],
        },

        /* 质量管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "quality/ana",
                    component: (resolve) => require(["@/views/quality/ana.vue"], resolve),
                    meta: {
                        title: "统计分析",
                    },
                },
                {
                    path: "quality/record",
                    component: (resolve) => require(["@/views/quality/record.vue"], resolve),
                    meta: {
                        title: "检查记录",
                    },
                },
                {
                    path: "quality/problemDetail",
                    component: (resolve) => require(["@/components/ProblemDetail.vue"], resolve),
                    meta: {
                        title: "质量问题处理",
                    },
                },
                {
                    path: "quality/check",
                    component: (resolve) => require(["@/views/quality/check.vue"], resolve),
                    meta: {
                        title: "检查部位",
                    },
                },
                {
                    path: "quality/problem",
                    component: (resolve) => require(["@/views/quality/problem.vue"], resolve),
                    meta: {
                        title: "质量问题库",
                    },
                },
                {
                    path: "quality/checkTask",
                    component: (resolve) => require(["@/views/quality/checkTask.vue"], resolve),
                    meta: {
                        title: "检查任务",
                    },
                },
                {
                    path: "quality/taskDetails",
                    component: (resolve) => require(["@/views/quality/taskDetails.vue"], resolve),
                    meta: {
                        title: "任务详情",
                    },
                },
                {
                    path: "quality/taskAdd",
                    component: (resolve) => require(["@/views/quality/taskAdd.vue"], resolve),
                    meta: {
                        title: "添加任务",
                    },
                },
                {
                    path: "quality/task",
                    component: (resolve) => require(["@/views/quality/task.vue"], resolve),
                    meta: {
                        title: "我的任务",
                    },
                },
                {
                    path: "quality/fine",
                    component: (resolve) => require(["@/views/quality/fine.vue"], resolve),
                    meta: {
                        title: "罚款单",
                    },
                },
                {
                    path: "quality/rectify",
                    component: (resolve) => require(["@/views/quality/rectify.vue"], resolve),
                    meta: {
                        title: "整改通知单",
                    },
                },
                {
                    path: "quality/rectifyData",
                    component: (resolve) => require(["@/views/quality/rectifyData.vue"], resolve),
                    meta: {
                        title: "整改通知单详情",
                    },
                },
            ],
        },

        /* 能耗管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "energy/water/msg",
                    component: (resolve) => require(["@/views/energy/water.vue"], resolve),
                    meta: {
                        title: "智能水表",
                    },
                },
                {
                    path: "energy/water/data",
                    component: (resolve) => require(["@/views/energy/waterData.vue"], resolve),
                    meta: {
                        title: "监测数据",
                    },
                },
                {
                    path: "energy/ammeter/msg",
                    component: (resolve) => require(["@/views/energy/ammeter.vue"], resolve),
                    meta: {
                        title: "智能电表",
                    },
                },
                {
                    path: "energy/ammeter/data",
                    component: (resolve) => require(["@/views/energy/ammeterData.vue"], resolve),
                    meta: {
                        title: "监测数据",
                    },
                },
                {
                    path: "energy/ammeter/record",
                    component: (resolve) => require(["@/views/energy/ammeterRecord.vue"], resolve),
                    meta: {
                        title: "报警记录",
                    },
                },
                {
                    path: "energy/ammeter/warnSetting",
                    component: (resolve) => require([
                            "@/views/energy/ammeterWarnSetting.vue",
                        ], resolve),
                    meta: {
                        title: "报警设置",
                    },
                },
                {
                    path: "energy/electric/msg",
                    component: (resolve) => require(["@/views/energy/electric.vue"], resolve),
                    meta: {
                        title: "智能电箱",
                    },
                },
            ],
        },

        /* 系统设置 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "sys/dept",
                    component: (resolve) => require(["@/views/systemSetting/dept.vue"], resolve),
                    meta: {
                        title: "组织机构",
                    },
                },
                {
                    path: "sys/user",
                    component: (resolve) => require(["@/views/systemSetting/user.vue"], resolve),
                    meta: {
                        title: "账号管理",
                    },
                },
                {
                    path: "sys/role",
                    component: (resolve) => require(["@/views/systemSetting/role.vue"], resolve),
                    meta: {
                        title: "角色管理",
                    },
                },
                {
                    path: "sys/rule",
                    component: (resolve) => require(["@/views/systemSetting/rule.vue"], resolve),
                    meta: {
                        title: "权限设置",
                    },
                },
                {
                    path: "sys/innerAccount",
                    component: (resolve) => require([
                            "@/views/systemSetting/InnerAccount.vue",
                        ], resolve),
                    meta: {
                        title: "内部账号",
                    },
                },
                {
                    path: "sys/wxUser",
                    component: (resolve) => require(["@/views/systemSetting/wxUser.vue"], resolve),
                    meta: {
                        title: "微信用户",
                    },
                },
                {
                    path: "sys/dict",
                    component: (resolve) => require(["@/views/systemSetting/dict.vue"], resolve),
                    meta: {
                        title: "数据字典",
                    },
                },
                {
                    path: "sys/machType",
                    component: (resolve) => require([
                            "@/views/systemSetting/machType.vue",
                        ], resolve),
                    meta: {
                        title: "设备类型",
                    },
                },
                {
                    path: "sys/algType",
                    component: (resolve) => require(["@/views/systemSetting/algType.vue"], resolve),
                    meta: {
                        title: "算法类型",
                    },
                },
                {
                    path: "sys/skin",
                    component: (resolve) => require(["@/views/systemSetting/skin.vue"], resolve),
                    meta: {
                        title: "皮肤定制",
                    },
                },
                {
                    path: "sys/algConfig",
                    component: (resolve) => require([
                            "@/views/systemSetting/algConfig.vue",
                        ], resolve),
                    meta: {
                        title: "算法配置",
                    },
                },
            ],
        },

        /* 内部应用 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "inner/cfg",
                    component: (resolve) => require(["@/views/inner/cfg.vue"], resolve),
                    meta: {
                        title: "配置中心",
                    },
                },
            ],
        },

        /* 硬件中心 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "hdc/dev",
                    component: (resolve) => require(["@/views/hardware/dev.vue"], resolve),
                    meta: {
                        title: "机械云管家",
                    },
                },
                {
                    path: "hdc/dev_data",
                    component: (resolve) => require(["@/views/hardware/dev_data.vue"], resolve),
                    meta: {
                        title: "机械云管家数据",
                    },
                },
                {
                    path: "hdc/helmet",
                    component: (resolve) => require(["@/views/hardware/helmet.vue"], resolve),
                    meta: {
                        title: "定位安全帽",
                    },
                },
                {
                    path: "hdc/helmet_data",
                    component: (resolve) => require(["@/views/hardware/helmet_data.vue"], resolve),
                    meta: {
                        title: "定位安全帽硬件数据",
                    },
                },
                {
                    path: "hdc/fvs",
                    component: (resolve) => require(["@/views/hardware/fvs.vue"], resolve),
                    meta: {
                        title: "视频安全帽",
                    },
                },
                {
                    path: "hdc/fvs_data",
                    component: (resolve) => require(["@/views/hardware/fvs_data.vue"], resolve),
                    meta: {
                        title: "视频安全帽硬件数据",
                    },
                },
                {
                    path: "hdc/obd",
                    component: (resolve) => require(["@/views/hardware/obd.vue"], resolve),
                    meta: {
                        title: "OBD硬件",
                    },
                },
                {
                    path: "hdc/obd_data",
                    component: (resolve) => require(["@/views/hardware/obd_data.vue"], resolve),
                    meta: {
                        title: "OBD硬件数据",
                    },
                },
                {
                    path: "hdc/alg",
                    component: (resolve) => require(["@/views/hardware/alg.vue"], resolve),
                    meta: {
                        title: "算法盒子",
                    },
                },
                {
                    path: "hdc/alg_data",
                    component: (resolve) => require(["@/views/hardware/alg_data.vue"], resolve),
                    meta: {
                        title: "算法盒子硬件数据",
                    },
                },
                {
                    path: "hdc/alg_config",
                    component: (resolve) => require(["@/views/hardware/alg_config.vue"], resolve),
                    meta: {
                        title: "算法盒子配置",
                    },
                },
                {
                    path: "hdc/upgrade",
                    component: (resolve) => require(["@/views/hardware/upgrade.vue"], resolve),
                    meta: {
                        title: "硬件升级",
                    },
                },
                {
                    path: "hdc/platform",
                    component: (resolve) => require(["@/views/hardware/platform.vue"], resolve),
                    meta: {
                        title: "第三方硬件",
                    },
                },
                {
                    path: "hdc/equip",
                    component: (resolve) => require(["@/views/hardware/equip.vue"], resolve),
                    meta: {
                        title: "考勤设备",
                    },
                },
                {
                    path: "hdc/equip_data",
                    component: (resolve) => require(["@/views/hardware/equip_data.vue"], resolve),
                    meta: {
                        title: "考勤设备硬件数据",
                    },
                },
            ],
        },

        /* 文档管理 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "doc/list",
                    component: (resolve) => require(["@/views/doc/list.vue"], resolve),
                    meta: {
                        title: "文档资料",
                    },
                },
            ],
        },

        /* 导出记录 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "exp/list",
                    component: (resolve) => require(["@/views/exp/list.vue"], resolve),
                    meta: {
                        title: "导出记录",
                    },
                },
            ],
        },

        /* 深基坑监测 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "pit/index",
                    component: (resolve) => require(["@/views/pit/index.vue"], resolve),
                    meta: {
                        title: "数据总览",
                    },
                },
                {
                    path: "pit/monitor",
                    component: (resolve) => require(["@/views/pit/monitor.vue"], resolve),
                    meta: {
                        title: "实时监测",
                    },
                },
                {
                    path: "pit/data",
                    component: (resolve) => require(["@/views/pit/data.vue"], resolve),
                    meta: {
                        title: "数据分析",
                    },
                },
                {
                    path: "pit/eq",
                    component: (resolve) => require(["@/views/pit/eq.vue"], resolve),
                    meta: {
                        title: "设备管理",
                    },
                },
                {
                    path: "pit/warn",
                    component: (resolve) => require(["@/views/pit/warn.vue"], resolve),
                    meta: {
                        title: "预警管理",
                    },
                },
                {
                    path: "pit/map",
                    component: (resolve) => require(["@/views/pit/map.vue"], resolve),
                    meta: {
                        title: "位置地图",
                    },
                },
            ],
        },

        /* 高支模监测 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "high_formwork/index",
                    component: (resolve) => require(["@/views/high_formwork/index.vue"], resolve),
                    meta: {
                        title: "高支模监测",
                    },
                },
                {
                    path: "high_formwork/monitor",
                    component: (resolve) => require(["@/views/high_formwork/monitor.vue"], resolve),
                    meta: {
                        title: "视频监控",
                    },
                },
                {
                    path: "high_formwork/warn_realtime",
                    component: (resolve) => require([
                            "@/views/high_formwork/warn_realtime.vue",
                        ], resolve),
                    meta: {
                        title: "实时预警",
                    },
                },
                {
                    path: "high_formwork/warn_statistics",
                    component: (resolve) => require([
                            "@/views/high_formwork/warn_statistics.vue",
                        ], resolve),
                    meta: {
                        title: "预警统计",
                    },
                },
                {
                    path: "high_formwork/warn_set",
                    component: (resolve) => require([
                            "@/views/high_formwork/warn_set.vue",
                        ], resolve),
                    meta: {
                        title: "预警设置",
                    },
                },
                {
                    path: "high_formwork/warn_history",
                    component: (resolve) => require([
                            "@/views/high_formwork/warn_history.vue",
                        ], resolve),
                    meta: {
                        title: "历史预警",
                    },
                },
            ],
        },
        /* 企业数据看板 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "companyboard/index",
                    component: (resolve) => require(["@/views/board/index.vue"], resolve),
                    meta: {
                        title: "数据总览",
                    },
                },
                {
                    path: "companyboard/index2",
                    component: (resolve) => require(["@/views/board/index2.vue"], resolve),
                    meta: {
                        title: "数据总览2",
                    },
                },
            ],
        },

        /* 安固士大屏-数据看板 */
        {
            path: "/",
            component: (resolve) =>
                require(["@/views/ags-board/boardTab.vue"], resolve),
            meta: {
                title: "大屏-数据看板",
            },
            children: [
                {
                    path: "/board/index",
                    component: (resolve) => require(["@/views/ags-board/index.vue"], resolve),
                    meta: {
                        title: "项目概况",
                    },
                },
                {
                    path: "/board/equip",
                    component: (resolve) => require(["@/views/ags-board/equip.vue"], resolve),
                    meta: {
                        title: "设备概况",
                    },
                },
                {
                    path: "/board/emp",
                    component: (resolve) => require(["@/views/ags-board/emp.vue"], resolve),
                    meta: {
                        title: "人员概况",
                    },
                },
                {
                    path: "/board/fvs",
                    component: (resolve) => require(["@/views/ags-board/fvs.vue"], resolve),
                    meta: {
                        title: "视频监控",
                    },
                },
                {
                    path: "/board/fse",
                    component: (resolve) => require(["@/views/ags-board/fse.vue"], resolve),
                    meta: {
                        title: "特种设备",
                    },
                },
                {
                    path: "/board/env",
                    component: (resolve) => require(["@/views/ags-board/env.vue"], resolve),
                    meta: {
                        title: "环境概况",
                    },
                },
                {
                    path: "/board/quality",
                    component: (resolve) => require(["@/views/ags-board/quality.vue"], resolve),
                    meta: {
                        title: "质量管理",
                    },
                },
                {
                    path: "/board/safety",
                    component: (resolve) => require(["@/views/ags-board/safety.vue"], resolve),
                    meta: {
                        title: "安全管理",
                    },
                },

                /* 在线指挥调度平台 */
                {
                    path: "/board/OnlineCommand",
                    component: (resolve) => require(["@/views/ags-board/OnlineCommand.vue"], resolve),
                    meta: {
                        title: "安全帽",
                    },
                },
                /* 无人机 */
                {
                    path: "/board/droneVideo",
                    component: (resolve) => require(["@/views/ags-board/droneVideo.vue"], resolve),
                    meta: {
                        title: "无人机视频",
                    },
                },
            ],
        },

        /* 作业管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "HomeworkManagement/work",
                    component: (resolve) => require(["@/views/HomeworkManagement/work.vue"], resolve),
                    meta: {
                        title: "工作计划",
                    },
                },
                {
                    path: "HomeworkManagement/classMeeting",
                    component: (resolve) => require(["@/views/HomeworkManagement/classMeeting.vue"], resolve),
                    meta: {
                        title: "工作计划",
                    },
                },
                {
                    path: "HomeworkManagement/dailyReport",
                    component: (resolve) => require(["@/views/HomeworkManagement/dailyReport.vue"], resolve),
                    meta: {
                        title: "日报记录",
                    },
                },
                {
                    path: "HomeworkManagement/OnSiteConfirmation",
                    component: (resolve) => require(["@/views/HomeworkManagement/OnSiteConfirmation.vue"], resolve),
                    meta: {
                        title: "到场确认",
                    },
                },
                {
                    path: "HomeworkManagement/ConfirmationOfWorkCompletion",
                    component: (resolve) => require(["@/views/HomeworkManagement/ConfirmationOfWorkCompletion.vue"], resolve),
                    meta: {
                        title: "离场确认",
                    },
                },
                {
                    path: "HomeworkManagement/Summary",
                    component: (resolve) => require(["@/views/HomeworkManagement/Summary.vue"], resolve),
                    meta: {
                        title: "工作计划汇总",
                    },
                },
                {
                    path: "HomeworkManagement/SummaryDetails",
                    component: (resolve) => require(["@/views/HomeworkManagement/SummaryDetails.vue"], resolve),
                    meta: {
                        title: "工作计划汇总详情",
                    },
                },
            ],
        },

        /* 入场管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "entry/applyFor",
                    component: (resolve) => require(["@/views/entry/applyFor.vue"], resolve),
                    meta: {
                        title: "入场申请",
                    },
                },
                {
                    path: "entry/Approval",
                    component: (resolve) => require(["@/views/entry/Approval.vue"], resolve),
                    meta: {
                        title: "入场审批",
                    },
                },
            ],
        },

        /* 班会管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "ClassMeetingManagement/ClassMeetingManagement",
                    component: (resolve) => require(["@/views/ClassMeetingManagement/ClassMeetingManagement.vue"], resolve),
                    meta: {
                        title: "班会管理",
                    },
                },
            ],
        },

        /* 材料管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "material/material",
                    component: (resolve) => require(["@/views/material/material.vue"], resolve),
                    meta: {
                        title: "材料管理",
                    },
                },
            ],
        },

        /* 无人机管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "drone/drone",
                    component: (resolve) => require(["@/views/drone/drone.vue"], resolve),
                    meta: {
                        title: "无人机管理",
                    },
                },
            ],
        },

        /* 会议纪要 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "MeetingMinutes/MeetingMinutes",
                    component: (resolve) => require(["@/views/MeetingMinutes/MeetingMinutes.vue"], resolve),
                    meta: {
                        title: "会议纪要",
                    },
                },
            ],
        },

        /* 车辆管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "car/index",
                    component: (resolve) => require(["@/views/car/index.vue"], resolve),
                    meta: {
                        title: "数据分析",
                    },
                },
                {
                    path: "car/list",
                    component: (resolve) => require(["@/views/car/list.vue"], resolve),
                    meta: {
                        title: "设备信息",
                    },
                },
                {
                    path: "car/maintain/record",
                    component: (resolve) => require(["@/views/car/maintain_record.vue"], resolve),
                    meta: {
                        title: "维修保养记录",
                    },
                },
                {
                    path: "car/apply",
                    component: (resolve) => require(["@/views/car/apply.vue"], resolve),
                    meta: {
                        title: "车辆入场申请",
                    },
                },
                {
                    path: "car/approval",
                    component: (resolve) => require(["@/views/car/approval.vue"], resolve),
                    meta: {
                        title: "车辆入场审批",
                    },
                },
            ],
        },

        /* 应急管理 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "emergency/contingencyPlan",
                    component: (resolve) => require(["@/views/emergency/contingencyPlan.vue"], resolve),
                    meta: {
                        title: "应急预案管理",
                    },
                },
                {
                    path: "emergency/DrillRecord",
                    component: (resolve) => require(["@/views/emergency/DrillRecord.vue"], resolve),
                    meta: {
                        title: "应急演练记录",
                    },
                },
            ],
        },

        /* 项目信息 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "ProjectInformation/plan",
                    component: (resolve) => require(["@/views/ProjectInformation/plan.vue"], resolve),
                    meta: {
                        title: "方案管理",
                    },
                },
                {
                    path: "ProjectInformation/contract",
                    component: (resolve) => require(["@/views/ProjectInformation/contract.vue"], resolve),
                    meta: {
                        title: "合同管理",
                    },
                },
                {
                    path: "ProjectInformation/qualification",
                    component: (resolve) => require(["@/views/ProjectInformation/qualification.vue"], resolve),
                    meta: {
                        title: "资质管理",
                    },
                },
            ],
        },

        /* 安全题库 - 新 */
        {
            path: "/",
            component: Layout,
            children: [
                {
                    path: "SecurityQuestionBank/questionBank",
                    component: (resolve) => require(["@/views/SecurityQuestionBank/questionBank.vue"], resolve),
                    meta: {
                        title: "题库列表",
                    },
                },

                {
                    path: "SecurityQuestionBank/TestQuestion",
                    component: (resolve) => require(["@/views/SecurityQuestionBank/TestQuestion.vue"], resolve),
                    meta: {
                        title: "试题列表",
                    },
                },
                {
                    path: "SecurityQuestionBank/TestQuestionClassification",
                    component: (resolve) => require(["@/views/SecurityQuestionBank/TestQuestionClassification.vue"], resolve),
                    meta: {
                        title: "试题分类",
                    },
                },
                {
                    path: "SecurityQuestionBank/AnswerRecord",
                    component: (resolve) => require(["@/views/SecurityQuestionBank/AnswerRecord.vue"], resolve),
                    meta: {
                        title: "答题记录",
                    },
                },
                {
                    path: "SecurityQuestionBank/ExamRecord",
                    component: (resolve) => require(["@/views/SecurityQuestionBank/ExamRecord.vue"], resolve),
                    meta: {
                        title: "考试记录",
                    },
                },
            ],
        },

    ],
});
